import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
// 导入store
import store from './store';
// 导入store提供组件Provider
import { Provider } from 'react-redux';
import {createBrowserRouter,RouterProvider} from "react-router-dom"

import router from './router'



const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
    {/* <App /> */}
    <RouterProvider router={router}/>
  </Provider>
);
